Computing the Least Fix-point Semantics of Definite Logic Programs Using BDDs

نویسندگان

  • Frédéric Besson
  • Thomas Jensen
  • Tiphaine Turpin
چکیده

We present the semantic foundations for computing the least fix-point semantics of definite logic programs using only standard operations over boolean functions. More precisely, we propose a representation of sets of first-order terms by boolean functions and a provably sound formulation of intersection, union, and projection (an operation similar to restriction in relational databases) using conjunction, disjunction, and existential quantification. We report on a prototype implementation of a logic solver using Binary Decision Diagrams (BDDs) to represent boolean functions and compute the above-mentioned three operations. This work paves the way for efficient solvers for particular classes of logic programs e.g., static program analyses, which leverage BDD technologies to factorise similarities in the solution space. Key-words: Semantics, binary decision diagrams, logic programs Calcul de la sémantique de plus petit point-fixe de programmes logiques définis en utilisant des BDDs Résumé : Nous présentons les fondements sémantiques nécessaires pour calculer la sémanique de plus petit point-fixe de programmes logiques définis, en utilisant uniquement des opérations standard sur les fonctions booléennes. Plus précisément, nous proposons une représentation d’ensembles de termes du premier ordre par des fonctions booléennes, et une formulation (prouvée correcte) de l’intersection, l’union et la projection (une opération similaire à la restriction dans les bases de données relationnelles) qui utilise la conjonction, la disjonction et la quantification existentielle. Nous rapportons les résultats d’un prototype d’implémentation d’un solveur logique qui utilise des diagrammes de décision binaires (BDDs) pour représenter les fonctions booléennes et calculer ces trois opérations. Ce travail ouvre la voie à des solveurs efficaces pour des classes particulières de programmes logiques, par exemple, des analyses statiques de programmes, qui utilisent la technologie des BDDs pour factoriser les similarités dans l’espace de solutions. Mots clés : Sémantique, diagrammes de décision binaires, programmes logiques * INRIA Rennes Bretagne Atlantique ** IRISA/CNRS *** INRIA Rennes Bretagne Atlantique c ©IRISA – Campus de Beaulieu – 35042 Rennes Cedex – France – +33 2 99 84 71 00 – www.irisa.fr in ria -0 04 33 82 0, v er si on 2 24 N ov 2 00 9 2 Besson, Jensen & Turpin

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

General Model Theoretic Semantics for Higher-Order Horn Logic Programming

We introduce model-theoretic semantics [6] for Higher-Order Horn logic programming language. One advantage of logic programs over conventional non-logic programs has been that the least fixpoint is equal to the least model, therefore it is associated to logical consequence and has a meaningful declarative interpretation. In simple theory of types [9] on which Higher-Order Horn logic programming...

متن کامل

A Functorial Framework for Constraint Normal Logic Programming

The semantic constructions and results for definite programs do not extend when dealing with negation. The main problem is related to a well-known problem in the area of algebraic specification: if we fix a constraint domain as a given model, its free extension by means of a set of Horn clauses defining a set of new predicates is semicomputable. However, if the language of the extension is rich...

متن کامل

SAT-Based Summarization for Boolean Programs

Boolean programs are frequently used to model abstractions of software programs. They have the advantage that reachability properties are decidable, despite the fact that their stack is not bounded. The enabling technique is summarization of procedure calls. Most model checking tools for Boolean programs use BDDs to represent these summaries, allowing for an efficient fix-point detection. Howev...

متن کامل

Declarative semantics of a meta-programming language?

We present a logical programming language, generative clause programs, which generalize definite clause programs with a meta-programming level. The fundamental notion in the language is that of a meta-goal which consists of a plain goal together with a program in which it is expected to be true. The declarative semantics can be defined in terms of Herbrand models consisting of such meta-goals. ...

متن کامل

A uniform approach to logic programming semantics

Part of the theory of logic programming and nonmonotonic reasoning concerns the study of fixed-point semantics for these paradigms. Several different semantics have been proposed during the last two decades, and some have been more successful and acknowledged than others. The rationales behind those various semantics have been manifold, depending on one’s point of view, which may be that of a p...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2009